home *** CD-ROM | disk | FTP | other *** search
/ stazsoftware.com / www.stazsoftware.com.tar / www.stazsoftware.com / futurebasic / sample-code / SwitchingToFB.sit / storage_bin / Storage Bin.main < prev    next >
Text File  |  2002-07-31  |  597b  |  32 lines

  1.  
  2. /*
  3.      tell the compiler that we need the routines
  4.      for the prefs file from the header folder
  5. */
  6. INCLUDE "Subs PrefsFile.Incl"
  7.  
  8. // load the existing prefs
  9. GET PREFERENCES "Storage Bin Prefs",gPref
  10.  
  11. // our finished app is named "Storage Bin"
  12. OUTPUT FILE "Storage Bin"
  13.  
  14. // hop over to the init routines
  15. FN initProgram
  16.  
  17. /*
  18.      set up the vectors for event handling and
  19.      dialog handling
  20. */
  21. ON MENU FN handleMenu
  22. ON DIALOG FN handledialog
  23.  
  24. // here's the main event loop
  25. DO
  26. HANDLEEVENTS
  27. UNTIL gFBQuit
  28.  
  29. // store the prefs when the progam is finished
  30. PUT PREFERENCES "Storage Bin Prefs",gPref
  31.  
  32.